<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>物流配送管理系统</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/css/readerTyper.css" />
</head>
<body style="font-size: 20px">
	<%@ include file="navigation.jsp"%>
	<div id="content">
		<p id="p">当前位置：商品管理> 商品信息管理>> </p>
		<div>
			<div align="left">
				<input id="button" type="button"
					onclick="window.location='${pageContext.request.contextPath}/goods/toAddGoodsInfo'"
					value="添加商品信息">
			</div>
			<table border="1" cellpadding="0" cellspacing="0">
				<tr align="center" bgcolor="#fed6ad";>
					<td class="t1">序号</td>
					<td class="t1">商品名称</td>
					<td class="t1">商品重量</td>
					<td class="t1">商品类型</td>
					<td class="t1">修改</td>
					<td class="t1">删除</td>
				</tr>
				<c:forEach items="${goodsInfo}" var="g" varStatus="index">
					<tr>
						<td class="t1" type="hidden" value="${g.goodsId}">${index.index+1 }</td>
						<td class="t1">${g.goodsName}</td>
						<td class="t1">${g.goodsWeight} Kg</td>
						<td class="t1">${g.typeName}</td>
						<td class="t1"><a
							href="${pageContext.request.contextPath}/goods/toUpdGoodsInfo?id=${g.goodsId}">修改</a></td>
						<td class="t1"><a
							href="${pageContext.request.contextPath}/goods/delGoodsInfo?id=${g.goodsId}"
							onclick="return confirm('确定删除${g.goodsName}吗?');">删除</a></td>
					</tr>
				</c:forEach>
			</table>
		</div>
</body>
</html>